<?php

class Install_Form_Setup_License extends Nuo_Form
{
	public function init()
	{
		// license
		$content = file_get_contents(STATIC_PATH . '/html/license.html');
		$content = sprintf('<div style="height:200px;overflow:scroll;overflow-x:hidden;padding:20px;border:1px solid #ccc;">%s</div>', nl2br($content));
		$this -> addElement('dummy', 'license', array('content' => $content));

		// submit
		$this -> addElement('button', '_submit', array(
				'class' => 'submit',
				'type' => 'submit',
				'label' => 'I agree to the license',
		));
	}

}
